#-*- coding: utf-8 -*-#
from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^in9/', include('in9.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    #Se estiver no servidor retire essa linha
    (r'^media/(.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),

    (r'^get/clientes/(?P<cliente_id>\d+)/$', 'scv.views.getClientes'),
    (r'^get/fornecedor/(?P<fornecedor_id>\d+)/$', 'scv.views.getFornecedor'),
    (r'^get/produto/(?P<produto_id>\d+)/$', 'scv.views.getProduto'),
    
    # Admin
    (r'^(.*)', admin.site.root),
    
)

#if settings.LOCAL:
#    urlpatterns += patterns('',
#        (r'^media/(.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
#        )